package com.lazy.book.common.entity;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 *
 * @author lazy
 * @since 2025-09-05
 */
@Data
public class UserPermissionChangeMessage {

  @Schema(description = "username")
  private String username;

  @Schema(description = "用户id")
  private Long userId;

  /**
   * 是否是对所有用户进行permission更新
   */
  private boolean toChangeAll;

  public UserPermissionChangeMessage() {
  }

  public UserPermissionChangeMessage(String username, Long userId, boolean toChangeAll) {
    this.username = username;
    this.userId = userId;
    this.toChangeAll = toChangeAll;
  }

  public UserPermissionChangeMessage(String username, boolean toChangeAll) {
    this.username = username;
    this.toChangeAll = toChangeAll;
  }

}
